fixed login frontend bug