code for login and concept works