login fix pages controller