Implement login user routine