Additional error checking. Added profile preview view.