created register controller