User authentication is working for login