added login validator