LoginPage with NSPredicate, String Methods in swift language