fixed error on empty email field