Formatting fixes
Formatting fix + checking user is empty before trying to set a session key with it