Adding conditions in a form