Removed bug in object class.

Removed bug in object class and have both password and email
authorizations working.