Bug fixes

Fixed requirements bug on updates. Fixed a bug where a semicolon was
getting appended to the SQL string causing invalid variable names
":email;". Fixed a bug with the logs, i wasnt single quoting the level.
fixed a bug in User preprocessor, references to session.security need
to be wrapped.