fixed login validator