refactoring in forms: login, last login and today report