Fixed email validation UnboundLocalError