fixed messages and added alert type in the Alert  model