Properly end input elements