Login And Register commit

Revert if it gives you errors.  I synced it before I committed it so
everyting prior to this commit should be there and my changes.  If it is
wrong please let me know asap.