add user login and register functional