fixed validations and added better errors gem