Use \A\z instead of ^$ in regex for security reason

- Use \A\z instead of ^$
    - Rails4 raises error
- Add protected_attribute gem