added validation around the account page