added lastLogin date writing in db on user connecting