Removed Login System--Added SMF login System

Removed custom login system, added SMF login integration. Fixed some
production side bugs in test side.