Implemented very basic role based authentication
Updated error reporting