Simplified login system.
Removed unnecessary code.
Added validation of registration fields.
Added validation of registration fields.
Divided database configuration, creation and function into separate files.
Bugfix: Function name changed.
Some todos done.