Added login system.
Added preferences.