prepare to do login and register