Categorized Message classes and added login messages and basic login handler.