Implemented page flow with login check