Added notifications for logging in and out
More improvements