Work on authentication system, sessions and before action