Validations for user,post and page models

Adding validations for user, post and page models.