add required attribute to login form