Fixed the error redirect on login (kinda)