added lowercase validation and test

make sure to keep a consistent indentation.