Register page redirects to login, missing the flash message though