Catching rails redirect to sign_in page and returning nil. Formatting expiry date for user locale.