registration now saves the user login stuffs to db