Various changes and updates.
Updated login and register procedures