added bypass (aka hack) for sending error message in lieu of error code
- not best practice , but may be handy as a temp solution during dev
fixed logic in renderLoginForError(..) to redirect to correct handler
instead of duplicating render /login.tpl code.  And added another helper
to further streamline this logic into a single call
fixed logic for return error code in both logic_, & rest_ to handle that
code for display logic