Refactored user login redirect so it can utilize user data