new login function to check for reservation redirect