fixing bug in current_user assignment