Added user login functionality