AC-3: Added possibility to log in.
AC-3: Added basic error handling to login.