implementing form-input error handling for register process. not finished yet. need to display errors back to UI also.