Reduce indentation in user_details()

Invert another long if statement and return early if it passes.
Improves legibility.

Change-Id: Ia495dc7fec1f77965a99466c6c27c65373e1e948
Reduce indentation in set_user_details.

Invert another long if statement and return early to improve legibility.

2014-02-16 Patch set 2: rebased.
2014-02-16 Patch set 3: resolve whitespace issues.

Change-Id: I7406bbe5c1cfa80e21178bf90a1ac621896b726d