Login now works and redirects to the my_diary page.