user is now authenticated by the login ui
error message handling
added ngcookies
added html and cookie logic for user state