fixed various bugs: worktoday, login, etc