Create directive to hide modal on sign in