Using MongoDB the user should be able to login if the record doesn't exist report failed login and ask to create new account. On create redirect to the User profile page which contains all information needed to be updated to the server for that user.