front end portion of login