Added roles and implemented getSubject and onAuthFailure in the deadboltHandler