corrected login redirect issue