Forgot to set user ID after successful login, previously User.getUserId only worked for existing sessions that were being reloaded in the browser