adding alerts to register view