How to add other conditions in a form?