add has_secure_password to generate attributes in model