LESSON 11 CREATING FUNCTION THAT SAVES USER INFORMATION TO THE DATABASE.

Creating a function that saves the user information to the database and redirect the user to the homepage with a success message.