switched to use login modules
added loginType to login module.
updated to use engine4.0 session handler.