Began adding in login functionality, username and password are now checked against database values but a login cookie is not yet implemented.