new error code for authentication
remove returnValue variable. just simply throw an exception
set by default isActive = false