took out loginRedirect()