Add required attribute to the login form.