Adding logging of  login attempts
Adding observer helper