small login bugfix to redirect