Working User Registration & Login

Added registration as well as refined the login process. Has error
messages and works as expected with the mySQL database.