fixed login to validate again