Adding logging to user login