Implement changes as FrmAuth, better session controll, simple database.

Still working on it.