displaying errors but ugly