Add localhost for local env
Test if email and password are present
Use getExpiration and ensure we have a DateTime object
Remove unvalid old token