extract error and alerts to layouts.alerts
Added user update method and views