Storing registered user in database.