prevent login without input