More warnings
Whitespace cleaning
session_is_registered is deprecated