registering and login mechanism succesfully running