Corrected wierd redirect after login