Added request functionality and corrected login problems