Update Functions.php

The "function login()" uses $_POST variables instead of $_SESSION to avoid a delayed processing at login.
Added "load_szoveg()" and "update_szoveg()" functions for the editor. 
The "test_input()" function sanitizes input from reg form.