fixes view state and err styling for protect page