modify addclass template to with class
minor edit in return value render to template on authenticateUser()