Added success and error pages

Added success and error pages as well as finished my functions