the login and register code of chatboxer, currently not on any framework.