[Commit 8] Complete LoginController and implement MessagesController