Fix formatting for login and main template