return success code to help client know whether login/signup success or fail
add some code in classpage controller for create class