Make login buttons refresh safe ie. render the user logged in if the
server says so otherwise render the user logged out