hat pattern creation; user login/signup form validations