initial code for user login