Made storing registered user data to db