login update

login only accepts emails and pattern implemented to prevent more than
one @ or . entered