CORE-4737: use a form rather than an onclick event to redirect users when they click the login button