fixed prev_req_page bug when going direct to login