login and register 1st stage