Implemented minimal login functionality.