Add Tools for the registration/login logic.

Also Edit const value in ProblemManager & SessionManager