adding user login functionality