Prevent login button page reload