page redirects and flash messages on login-process