fixed login bug and show last day of the currently logged in user