fixed current_user.nil error