Added login validation (testing phase)