Fixed user sign in and sign up

The system now has a much more efficient way of logging in and signing
up, as well as making sure it doesn't lose it's user ID session
variable! Hurrah!