Created check_auth action in Session controller to allow auths when certain conditions are met.
Updated flash messages and redirection based on check_auth results.