How to avoid filling fields not relevant to the user