Saving login details and correcting scanning of tag