Implement the Login method (refs #1)