Implemented set_current_user: new function set_current user.

needed to not alter global user object.