add user locked method to user class