add a way to register username
add logout function for maiCtrl
add logout button in homepage