Implements the Login

closes #1