Styled validations and added automatic hiding after 2 seconds