use BUFSIZ everywhere
whitespace fixes :(
add error message for bad user