Added validiations to user model. resolves #17