Adding missing db fields (updated_at, created_at) to the `user` table as they are required by the base Model, otherwise queries will fail to insert or update.
Update to access the DB and query matching user or insert new users.
Update to configuration to pull DB credentials from apache vhost and thus avoid hardcoding them.
Adding functionality to use `User` model to retrieve user data for registration validation and insertion in case the user has not yet been registered.
Upon registration of new user, I'm hashing the password to add security and protect the user data.
Adding Logging for errors or repeated events that could give info to potential attacks.