Changed length to size and auth to input