Better error handler
Get rid of defines for session for member login