added and implemented further sanitize functions for input