Change function name. Add rules to form