Fixed up login, logout and register methods
o Made global functions for executing user controls