Implemented error handling. Styled add page.