Bugfix - test if current_user exists.