User log in and log out are now both working successfully. Ran migration to remove the username field from Users table as it is redundant.