Messages div manipulation and removal of wrong border for continue button