Style fixes, better error logging, cleaned up HTML markup on input fields