Added bean validation along with messages and constants to Core and
Accounts.