Implement authentication with login module