fixed login to not redirect