Added some sanity check of input and some styling.