user login and register is done.