moved validation to model from controller for users code