put login in env
fix date logic for real