fixing redirect issues, checking if user exists on home