implement site reload when ajax request returns that user is already logged in - fixes #699