#000|Sandeep| using scope instead of rootscope for binding error and success message