login validation,logging,exception handling

finishing up login screen. added logging.