Login module update for username password and error passing