Fixed sanitize_post_value and added redirect function.