* fix login and register code