added user register mehtod