Prevent session from being printed to the console, also make sure the username is not empty. Causes a lot of bugs further down the line.