Added Login functionality with error message on failure
(MIGRATION) Added in the categories field and public and more database functions