Working login and formatting