Email field is not showing due to wrong conditions