Added in handling case of authentication
Fixed typo
Added user role constants and fixed object