added scroll to top function on submit with error. also added functionality to remove error div when user corrects mistakes