GH2: Implement login

Reviewed and approved.