Alasdair/profile and account

@wedaly @rlucioni ECOM-146
Refactored account.js and added validation